
package fileby.ctrl.actions.impl;

import fileby.core.ActionKey;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JDialog;

/**
 *
 * @author Jacob
 */
class CloseAboutBoxAction extends AbstractAction {

    public CloseAboutBoxAction() {
        super("Close", null);
        putValue(SHORT_DESCRIPTION, "Close this frame");
    }

    public void actionPerformed(ActionEvent e) {
        JDialog d = (JDialog)this.getValue(ActionKey.CLOSE_ABOUT_BOX.toString());
        d.dispose();
    }

}
